package com.clever.mall.controller;

import com.clever.mall.commons.result.BaseResult;
import com.clever.mall.service.ActivityService;
import com.clever.mall.vo.ActivityVo;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

@RestController
@RequestMapping("/activity")
public class ActivityController {
    @Resource
    ActivityService activityService;

    //查询所有要展示的活动图片
    @RequestMapping("/findAll")
    public BaseResult findAll(){
        List<ActivityVo> all = activityService.findALl();
        return BaseResult.success(all);
    }
}
